package web.fabrimind.pm.mapper;

import java.util.List;
import web.fabrimind.pm.domain.WorkOrder;

/**
 * 生产工单Mapper接口
 * 
 * @author zhihui
 * @date 2025-03-25
 */
public interface WorkOrderMapper 
{
    /**
     * 查询生产工单
     * 
     * @param orderId 生产工单主键
     * @return 生产工单
     */
    public WorkOrder selectWorkOrderByOrderId(Long orderId);

    /**
     * 查询生产工单列表
     * 
     * @param workOrder 生产工单
     * @return 生产工单集合
     */
    public List<WorkOrder> selectWorkOrderList(WorkOrder workOrder);

    /**
     * 新增生产工单
     * 
     * @param workOrder 生产工单
     * @return 结果
     */
    public int insertWorkOrder(WorkOrder workOrder);

    /**
     * 修改生产工单
     * 
     * @param workOrder 生产工单
     * @return 结果
     */
    public int updateWorkOrder(WorkOrder workOrder);

    /**
     * 删除生产工单
     * 
     * @param orderId 生产工单主键
     * @return 结果
     */
    public int deleteWorkOrderByOrderId(Long orderId);


    /**
     * 批量删除生产工单
     * 
     * @param orderIds 需要删除的数据主键集合
     * @return 结果
     */
    public int deleteWorkOrderByOrderIds(Long[] orderIds);




    /**
     * 查询关联计划列表（不分页）
     */
    List<WorkOrder> selectPlanList(WorkOrder workOrder);


}
